// axios
import advServer from '@src/request/advServer';

export const add = (adminName, passWord) => {
  return advServer.post('/admin', {
    adminName,
    passWord,
  })
}

export const list = () => {
  return advServer.get('/admin')
}

export const del = (id) => {
  return advServer.delete(`/admin/${id}`)
}